home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
FM Towns: Free Software Collection 10
/
FM Towns Free Software Collection 10.iso
/
taropyon
/
install
/
ccilib.h
< prev
next >
Wrap
C/C++ Source or Header
|
1994-11-16
|
6KB
|
156 lines
#ifndef _CCILIB_H
#define _CCILIB_H
#define NULL (0)
#define NORMAL (0)
#define ERR (-1)
#define TRUE (1)
#define FALSE (1)
#define BUFSIZ (512)
#define va_start(ap, parmN) (ap = (char *)(&parmN) + sizeof(int))
#define va_arg(ap, type) ( *(type *) ((ap += __psize(sizeof(type)) ) - __psize(sizeof(type))) )
#define va_end(ap)
#define CLOCKS_PER_SEC 100
/*************************************************************************
* マウス
*************************************************************************/
#define MOS_CON() PD_curOn()
#define MOS_COFF() PD_curOff()
#define MOS_DEC() PD_curDec()
#define MOS_INC() PD_curInc()
/*************************************************************************
* スクリーン
*************************************************************************/
#define C_BLACK (_ScnColTbl[ 0])
#define C_BLUE (_ScnColTbl[ 1])
#define C_RED (_ScnColTbl[ 2])
#define C_MAGENTA (_ScnColTbl[ 3])
#define C_GREEN (_ScnColTbl[ 4])
#define C_CYAN (_ScnColTbl[ 5])
#define C_YELLOW (_ScnColTbl[ 6])
#define C_WHITE (_ScnColTbl[ 7])
#define C_HBLACK (_ScnColTbl[ 8])
#define C_HBLUE (_ScnColTbl[ 9])
#define C_HRED (_ScnColTbl[10])
#define C_HMAGENTA (_ScnColTbl[11])
#define C_HGREEN (_ScnColTbl[12])
#define C_HCYAN (_ScnColTbl[13])
#define C_HYELLOW (_ScnColTbl[14])
#define C_HWHITE (_ScnColTbl[15])
#define C_THROUGH (_ScnCol_though) /* 透明色 */
#define C_MWHITE (_ScnCol_white) /* 白 */
#define C_MBLACK (_ScnCol_black) /* 黒 */
#define C_HILIGHT (_ScnCol_hilight) /* ハイライト */
#define C_SHADOW (_ScnCol_shadow) /* 影 */
#define C_DARK (_ScnCol_dark) /* 暗 */
#define C_LGRAY (_ScnCol_lgray) /* ライトグレイ */
#define PSET 0
#define PRESET 1
#define OR 2
#define AND 3
#define XOR 4
#define NOT 5
#define OPAQUE 9
/* タイリング --------------------------------------------------------*/
#define MIXCOL_NORMAL (0x00)
#define MIXCOL_STD1 (0x01)
#define MIXCOL_CROSS1 (0x10)
#define MIXCOL_CROSS2 (0x11)
/*************************************************************************
* ダイアログ
*************************************************************************/
/* ダイアログ表示位置 ------------------------------------------------*/
#define DLGPOS_NORMAL (0)
#define DLGPOS_CENTER_OF_SCREEN (1) /* 画面中央 */
#define DLGPOS_MOSCUR (8) /* マウスカーソル位置に */
/* メッセージ属性 ----------------------------------------------------*/
#define TXMDAT_ATT_LEFT (0)
#define TXMDAT_ATT_CENTER (1)
#define TXMDAT_ATT_RIGHT (2)
/*************************************************************************
* ファイルライブラリ
*************************************************************************/
#define FSISFILE_ERR (-1)
#define FSISFILE_FILE (1)
#define FSISFILE_DIR (2)
/*************************************************************************
* ファイルダイアログ
*************************************************************************/
/* 属性 ------------------------------------------------------------*/
#define FDLATT_SINGLE (0x00000001) /* ファイルをひとつだけ選択/指定 */
#define FDLATT_MULTI (0x00000002) /* 複数選択/指定 */
#define FDLATT_PATH (0x00000003) /* ディレクトリ選択/指定 */
#define FDLATT_DIRIGN (0x00000080) /* サブディレクトリの選択/指定を禁止 */
#define FDLATT_DUPIGN (0x00000800) /* 同一ファイル1の選択を禁止する */
#define FDLATT_EXIST (0x00008000) /* 存在するファイルのみ選択可能 */
#define FDLATT_SIDEWORK (0x00010000) /* サイドーク */
#define FDLATT_DOSCALL (0x00020000) /* DOS コマンド */
#define FDLATT_EXTIGN (0x00040000) /* 拡張メニュー禁止 */
/* sort ------------------------------------------------------------*/
#define FDLSORT_OFF (0) /* ソートなし */
#define FDLSORT_FILE (1) /* ファイル名 */
#define FDLSORT_SUB (2) /* 拡張子 */
#define FDLSORT_DATE (3) /* 日付 */
#define FDLSORT_SIZE (4) /* サイズ */
#define FDLSORT_RVS (0x80) /* 昇順/降順 */
#define FDLSORT_DIRBIT (0x60)
#define FDLSORT_DIRTOP (0x00) /* ディレクトリ先頭 */
#define FDLSORT_DIRLAST (0x20) /* ディレクトリ最後 */
#define FDLSORT_DIROFF (0x40) /* ディレクトリ */
/*************************************************************************
* ファイルコピー
*************************************************************************/
/* fcopy ------------------------------------------------------------*/
#define FCOPY_ATT_SUBDIR (0x00000001) /* サブディレクトリも複写 */
#define FCOPY_ATT_HIDDEN (0x00000002) /* 隠しファイルも複写 */
#define FCOPY_ATT_SYSTEM (0x00000004) /* システムファイルも複写 */
#define FCOPY_ATT_ATTRIBUTES (0x00000008) /* ファイル属性も複写 */
#define FCOPY_ATT_TIMESTAMP (0x00000010) /* タイムスタンプも複写 */
#define FCOPY_ATT_CHK_OVERWRITE (0x00000100) /* 上書き確認 */
#define FCOPY_ATT_CHK_TIMESTAMP (0x00000200) /* タイムスタンプ比較 */
#define FCOPY_ATT_NOENDMSG (0x01000000) /* 終了メッセージなし */
/*************************************************************************
* DTA & PCL
*************************************************************************/
#define APLPCL_SAVE_SCREEN (1) /* 画面保存 */
#define APLPCL_RESET_CRTC (2) /* 画面再設定 */
#define APLPCL_SET_STARTPATH (4) /* 起動パスDTA 設定 */
#define APLPCL_SET_PCP (8) /* PCP 設定 */
#define APLPCL_SET_MRESO (16) /* 中解像度設定 */
#define APLPCL_CLEAR_SCREEN (32) /* 画面の消去 */
#define APLPCL_DTALIB_IGNORE (128) /* DTA ライブラリ使用禁止 */
/*************************************************************************
* IMG
*************************************************************************/
#define IMG_ATT_PLTON (0x00010000)
#endif